/*
* @Author: steven.wang
* @Date:   2019-05-13 14:53:53
* @Last Modified by:   steven.wang
* @Last Modified time: 2019-05-13 14:55:06
*/
import request from '@/utils/request';
/**
 * 登录
 * @author steven.wang
 * @DateTime 2019-05-13T14:54:55+0800
 */
export function login(username, password) {
    return request({
        url: '/user/signin',
        method: 'post',
        data: {
            username,
            password
        }
    })
}
/**
 * 获取用户信息
 * @author steven.wang
 * @DateTime 2019-05-13T14:54:31+0800
 */
export function getInfo() {
    return request({
        url: '/user/info',
        method: 'get'
    })
}
/**
 * 退出登录
 * @author steven.wang
 * @DateTime 2019-05-13T14:54:37+0800
 */
export function logout() {
    return request({
        url: '/user/signout',
        method: 'post'
    })
}